package com.study.d8_collection_test;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

//Lombok：使用注解简化get set 有参 无参构造器方法
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Card {
    private String number;
    private String color;
    private int weight;
    @Override
    public String toString() {
        return color+number;
    }
}
